package br.com.news.utils.database.beans;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import br.com.news.utils.beans.BaseBean;
import br.com.news.utils.database.beans.keys.AlternativaEnqueteKeyBean;

@XmlRootElement
public class AlternativaEnqueteBean extends BaseBean {

	private static final long serialVersionUID = -8885892821122591504L;

	private AlternativaEnqueteKeyBean alternativaEnqueteKey;
	private String descricao;

	public AlternativaEnqueteBean() {
	}
	
	public AlternativaEnqueteBean(short alternativa, Long idEnquete) {
		this.alternativaEnqueteKey = new AlternativaEnqueteKeyBean(alternativa, idEnquete);
	}

	public AlternativaEnqueteBean(String descricao) {
		this.descricao = descricao;
	}

	@XmlElement
	public String getDescricao() {
		return this.descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	@XmlElement
	public AlternativaEnqueteKeyBean getAlternativaEnqueteKey() {
		return alternativaEnqueteKey;
	}

	public void setAlternativaEnqueteKey(
			AlternativaEnqueteKeyBean alternativaEnqueteKey) {
		this.alternativaEnqueteKey = alternativaEnqueteKey;
	}

}
